Skip to content

Instantly share code, notes, and snippets.

@kralicky
kralicky / harvester-gpu.md
Last active May 9, 2024 03:33
Harvester GPU Provisioning

Harvester GPU Provisioning

  1. Install Harvester, then SSH into the server.

  2. Edit /boot/grub/grub.cfg as follows:

 set default=0
 set timeout=10
 
@0xdevalias
0xdevalias / generating-synth-patches-with-ai.md
Last active May 9, 2024 03:32
Some notes on generating software synthesizer patches with AI
@imhet
imhet / Mac OS 上关闭 SIP.md
Created November 4, 2019 15:59
Mac OS 上关闭 SIP

SIP 是 System Integrity Protection 的简写,译为系统完整性保护。 SIP 是 OS X El Capitan 时开始采用的一项安全技术,目的是为了限制 root 账户对系统的完全控制权,也叫 Rootless 保护机制。

Mac 系统中 SIP 状态默认是开启的。近期更新了系统版本导致该状态重新被打开,在终端运行一些命令时提示 "Operation not permitted" 。

查看 SIP 状态

终端输入 csrutil status 即可看到 SIP 的状态是 disable 还是 enable 。

关闭或开启 SIP

@parmentf
parmentf / GitCommitEmoji.md
Last active May 9, 2024 03:31
Git Commit message Emoji
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 9, 2024 03:27
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@tito
tito / refactor.py
Created March 8, 2023 16:51
Using OpenAI/ChatGPT as refactoring tool
"""
Refactoring tool using ChatGPT from Vue 2 to Vue 3
$ export OPENAPI_APIKEY=sk.........
$ python refactor.py MyView.vue
"""
import os
import re
import sys
@OrionReed
OrionReed / dom3d.js
Last active May 9, 2024 03:18
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@eduardo-mior
eduardo-mior / Lista de Órgãos Emissores
Last active May 9, 2024 03:13
Lista completa de órgãos emissores de documentos de identificação.
ABNC - Academia Brasileira de Neurocirurgia
AGU - Advocacia-Geral da União
ANAC - Agência Nacional de Aviação Civil
CAER - Clube de Aeronáutica
CAU - Conselho de Arquitetura e Urbanismo
CBM - Corpo de Bombeiro Militar
CFA - Conselho Federal Administração
CFB - Conselho Federal de Biblioteconomia
CFBIO - Conselho Federal de Biologia
CFBM - Conselho Federal de Biomedicina